package com.cainaer.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cainaer.product.domain.ProductSku;
import feign.Param;

import java.util.List;

/**
 * <p>
 * SKU表 Mapper 接口
 * </p>
 *
 * @author Tina
 * @since 2020-09-11
 */
public interface ProductSkuMapper extends BaseMapper<ProductSku> {

    /**
     * 通过规格ID查询sku数据
     *
     * @param attributeId
     * @return
     */
    List<ProductSku> selectProductSkuByAttributeId(@Param("attributeId") Long attributeId);

}
